package ribbon.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: Admin
 * @Date: 2021/3/19 09:35
 * @Description:
 */
@Configuration
public class MySelRule {

    @Bean
    public IRule myRule() {
        return new RandomRule();
    }

}
